﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace Entity
{ 

    public class BoContests 
    { 
        #region BO
        private String _CON_ID;
        private String _CON_COMPETITIONS;
        private Int32 _CON_YEAR;
        private Int32 _CON_MONTH;
        private String _CON_ADDRESS;
        private String _CON_TEACHERS;
        private String _CON_NAME;
        private DateTime _CON_STARTTIME;
        private DateTime _CON_ENDTIME;
        private String _CON_CREATOR;
        private String _CON_EXPERIENCE;
        private String  _CON_IMPROVE;
        private String _CON_SUMMARY;
        private Int32 _CON_ISCHECK;
        private Int32 _CON_ISSHOW;
        private string _CON_CONTENTS;
        private String _ACA_NAME;
        private String _TEA_NAME;
        private String _MANAGER_NAME;
        private DateTime _ENROLL_TIME;
        #endregion

        public String CON_CONTENTS
        {
            get { return _CON_CONTENTS; }
            set { _CON_CONTENTS = value; }
        }
    public String CON_ID 
        {
            get{ return _CON_ID; }
            set{ _CON_ID=value; }
        }
        public String CON_COMPETITIONS 
        {
            get{ return _CON_COMPETITIONS; }
            set{ _CON_COMPETITIONS=value; }
        }
        public Int32 CON_YEAR 
        {
            get{ return _CON_YEAR; }
            set{ _CON_YEAR=value; }
        }
        public Int32 CON_MONTH 
        {
            get{ return _CON_MONTH; }
            set{ _CON_MONTH=value; }
        }
        public String CON_ADDRESS 
        {
            get{ return _CON_ADDRESS; }
            set{ _CON_ADDRESS=value; }
        }
        public String CON_TEACHERS 
        {
            get{ return _CON_TEACHERS; }
            set{ _CON_TEACHERS=value; }
        }
        public String CON_NAME 
        {
            get{ return _CON_NAME; }
            set{ _CON_NAME=value; }
        }
        public DateTime CON_STARTTIME 
        {
            get{ return _CON_STARTTIME; }
            set{ _CON_STARTTIME=value; }
        }
        public DateTime CON_ENDTIME 
        {
            get{ return _CON_ENDTIME; }
            set{ _CON_ENDTIME=value; }
        }
        public String CON_CREATOR 
        {
            get{ return _CON_CREATOR; }
            set{ _CON_CREATOR=value; }
        }
        public String CON_EXPERIENCE 
        {
            get{ return _CON_EXPERIENCE; }
            set{ _CON_EXPERIENCE=value; }
        }
        public String CON_IMPROVE 
        {
            get{ return _CON_IMPROVE; }
            set{ _CON_IMPROVE=value; }
        }
        public String CON_SUMMARY 
        {
            get{ return _CON_SUMMARY; }
            set{ _CON_SUMMARY=value; }
        }
        public Int32 CON_ISCHECK 
        {
            get{ return _CON_ISCHECK; }
            set{ _CON_ISCHECK=value; }
        }
        public Int32 CON_ISSHOW
        {
            get { return _CON_ISSHOW; }
            set { _CON_ISSHOW = value; }
        }

        public String CON_STATE
        {
            get
            {
                switch (CON_ISSHOW)
                {
                    case 0:
                        return "未发布";
                    case 1:
                        return "已发布";
                    case 2:
                        return "开始报名";
                    case 3:
                        return "报名结束";
                    case 4:
                        return "竞赛结束";
                    default:
                        return "";
                }
            }
        }

        public String ACA_NAME
        {
            get { return _ACA_NAME; }
            set { _ACA_NAME = value; }
        }
        public String TEA_NAME
        {
            get { return _TEA_NAME; }
            set { _TEA_NAME = value; }
        }
        public String MANAGER_NAME
        {
            get { return _MANAGER_NAME; }
            set { _MANAGER_NAME = value; }
        }
        public BoCompetitions Competitions = new BoCompetitions();

        public String COM_HOST
        {
            get { return Competitions.COM_HOST; }
            set { Competitions.COM_HOST = value; }
        }

        public String COM_UNDERTAKE
        {
            get { return Competitions.COM_UNDERTAKE; }
            set { Competitions.COM_UNDERTAKE = value; }
        }

        public String COM_LEVEL
        {
            get { return Competitions.COM_LEVEL; }
            set { Competitions.COM_LEVEL = value; }
        }

        public Int32 COM_CAPITAL
        {
            get { return Competitions.COM_CAPITAL; }
            set { Competitions.COM_CAPITAL = value; }
        }

        public String COM_CONTENTS
        {
            get { return Competitions.COM_CONTENTS; }
            set { Competitions.COM_CONTENTS = value; }
        }

        public DateTime ENROLL_TIME
        {
            get { return _ENROLL_TIME; }
            set { _ENROLL_TIME = value; }
        }

        public BoContests(){
            _CON_ID = "";
            _CON_COMPETITIONS = "0";
            _CON_YEAR = 0;
            _CON_MONTH = 0;
            _CON_ADDRESS = "";
            _CON_TEACHERS = "";
            _CON_NAME = "";
            _CON_STARTTIME =DateTime.Today;
            _CON_ENDTIME = DateTime.Today;
            _CON_CREATOR = "";
            _CON_EXPERIENCE = "";
            _CON_IMPROVE = "";
            _CON_SUMMARY = "";
            _CON_ISCHECK = 0;
            _CON_ISSHOW = 0;
            _CON_CONTENTS = "";
            _ACA_NAME = "";
            _TEA_NAME = "";
            _MANAGER_NAME = "";
            _ENROLL_TIME = DateTime.Now;
        }
    }
}
